Fix scrolled window policy so the size allocation does not "flap"
authorKristian Rietveld <kris@gtk.org>
Tue, 12 Oct 2010 16:25:22 +0000 (18:25 +0200)
committerKristian Rietveld <kris@gtk.org>
Tue, 12 Oct 2010 17:12:44 +0000 (19:12 +0200)
gtk/tests/treeview-scrolling.c

index 19c5dc2ae3ea71fcc4f22ef1909c568a0bfd7a98..90f8fea4927a1abb6a880087d90d75dfe5a67117 100644 (file)
@@ -110,6 +110,9 @@ scroll_fixture_setup (ScrollFixture *fixture,
        fixture->window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
 
        sw = gtk_scrolled_window_new (NULL, NULL);
+       gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),
+                                       GTK_POLICY_NEVER,
+                                       GTK_POLICY_ALWAYS);
        gtk_container_add (GTK_CONTAINER (fixture->window), sw);
 
        fixture->tree_view = gtk_tree_view_new_with_model (model);